home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Resources / Online / HTML4 / strict.dtd < prev    next >
Text File  |  1999-08-24  |  35KB  |  873 lines

  1. <!--
  2.     This is HTML 4.01 Strict DTD, which excludes the presentation 
  3.     attributes and elements that W3C expects to phase out as 
  4.     support for style sheets matures. Authors should use the Strict
  5.     DTD when possible, but may use the Transitional DTD when support
  6.     for presentation attribute and elements is required.
  7.     
  8.     HTML 4.01 includes mechanisms for style sheets, scripting,
  9.     embedding objects, improved support for right to left and mixed
  10.     direction text, and enhancements to forms for improved
  11.     accessibility for people with disabilities.
  12.  
  13.           Draft: $Date: 1999/06/23 21:53:14 $
  14.  
  15.           Authors:
  16.               Dave Raggett <dsr@w3.org>
  17.               Arnaud Le Hors <lehors@w3.org>
  18.               Ian Jacobs <ij@w3.org>
  19.  
  20.     Further information about HTML 4.01 is available at:
  21.  
  22.         http://www.w3.org/TR/html40
  23. -->
  24. <!--
  25.     Typical usage:
  26.  
  27.     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  28.             "http://www.w3.org/TR/html40/strict.dtd">
  29.     <html>
  30.     <head>
  31.     ...
  32.     </head>
  33.     <body>
  34.     ...
  35.     </body>
  36.     </html>
  37.  
  38.     The URI used as a system identifier with the public identifier allows
  39.     the user agent to download the DTD and entity sets as needed.
  40.  
  41.     The FPI for the Transitional HTML 4.01 DTD is:
  42.  
  43.         "-//W3C//DTD HTML 4.01 Transitional//EN"
  44.  
  45.     and its URI is:
  46.  
  47.         http://www.w3.org/TR/html40/loose.dtd
  48.  
  49.     If you are writing a document that includes frames, use 
  50.     the following FPI:
  51.  
  52.         "-//W3C//DTD HTML 4.01 Frameset//EN"
  53.  
  54.     with the URI:
  55.  
  56.         http://www.w3.org/TR/html40/frameset.dtd
  57.  
  58.     The following URIs are supported in relation to HTML 4.01
  59.  
  60.     "http://www.w3.org/TR/html40/strict.dtd" (Strict DTD)
  61.     "http://www.w3.org/TR/html40/loose.dtd" (Loose DTD)
  62.     "http://www.w3.org/TR/html40/frameset.dtd" (Frameset DTD)
  63.     "http://www.w3.org/TR/html40/HTMLlat1.ent" (Latin-1 entities)
  64.     "http://www.w3.org/TR/html40/HTMLsymbol.ent" (Symbol entities)
  65.     "http://www.w3.org/TR/html40/HTMLspecial.ent" (Special entities)
  66.  
  67.     These URIs point to the latest version of each file. To reference
  68.     this specific revision use the following URIs:
  69.  
  70.     "http://www.w3.org/TR/1999/PR-html40-19990824/strict.dtd"
  71.     "http://www.w3.org/TR/1999/PR-html40-19990824/loose.dtd"
  72.     "http://www.w3.org/TR/1999/PR-html40-19990824/frameset.dtd"
  73.     "http://www.w3.org/TR/1999/PR-html40-19990824/HTMLlat1.ent"
  74.     "http://www.w3.org/TR/1999/PR-html40-19990824/HTMLsymbol.ent"
  75.     "http://www.w3.org/TR/1999/PR-html40-19990824/HTMLspecial.ent"
  76.  
  77. -->
  78.  
  79. <!--================== Imported Names ====================================-->
  80. <!-- Feature Switch for frameset documents -->
  81. <!ENTITY % HTML.Frameset "IGNORE">
  82.  
  83. <!ENTITY % ContentType "CDATA"
  84.     -- media type, as per [RFC2045]
  85.     -->
  86.  
  87. <!ENTITY % ContentTypes "CDATA"
  88.     -- comma-separated list of media types, as per [RFC2045]
  89.     -->
  90.  
  91. <!ENTITY % Charset "CDATA"
  92.     -- a character encoding, as per [RFC2045]
  93.     -->
  94.  
  95. <!ENTITY % Charsets "CDATA"
  96.     -- a space separated list of character encodings, as per [RFC2045]
  97.     -->
  98.  
  99. <!ENTITY % LanguageCode "NAME"
  100.     -- a language code, as per [RFC1766]
  101.     -->
  102.  
  103. <!ENTITY % Character "CDATA"
  104.     -- a single character from [ISO10646] 
  105.     -->
  106.  
  107. <!ENTITY % LinkTypes "CDATA"
  108.     -- space-separated list of link types
  109.     -->
  110.  
  111. <!ENTITY % MediaDesc "CDATA"
  112.     -- single or comma-separated list of media descriptors
  113.     -->
  114.  
  115. <!ENTITY % URI "CDATA"
  116.     -- a Uniform Resource Identifier,
  117.        see [URI]
  118.     -->
  119.  
  120. <!ENTITY % Datetime "CDATA" -- date and time information. ISO date format -->
  121.  
  122.  
  123. <!ENTITY % Script "CDATA" -- script expression -->
  124.  
  125. <!ENTITY % StyleSheet "CDATA" -- style sheet data -->
  126.  
  127.  
  128.  
  129. <!ENTITY % Text "CDATA">
  130.  
  131.  
  132. <!-- Parameter Entities -->
  133.  
  134. <!ENTITY % head.misc "SCRIPT|STYLE|META|LINK|OBJECT" -- repeatable head elements -->
  135.  
  136. <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
  137.  
  138. <!ENTITY % list "UL | OL">
  139.  
  140. <!ENTITY % preformatted "PRE">
  141.  
  142.  
  143. <!--================ Character mnemonic entities =========================-->
  144.  
  145. <!ENTITY % HTMLlat1 PUBLIC
  146.    "-//W3C//ENTITIES Latin1//EN//HTML"
  147.    "http://www.w3.org/TR/1999/PR-html40-19990824/HTMLlat1.ent">
  148. %HTMLlat1;
  149.  
  150. <!ENTITY % HTMLsymbol PUBLIC
  151.    "-//W3C//ENTITIES Symbols//EN//HTML"
  152.    "http://www.w3.org/TR/1999/PR-html40-19990824/HTMLsymbol.ent">
  153. %HTMLsymbol;
  154.  
  155. <!ENTITY % HTMLspecial PUBLIC
  156.    "-//W3C//ENTITIES Special//EN//HTML"
  157.    "http://www.w3.org/TR/1999/PR-html40-19990824/HTMLspecial.ent">
  158. %HTMLspecial;
  159. <!--=================== Generic Attributes ===============================-->
  160.  
  161. <!ENTITY % coreattrs
  162.  "id          ID             #IMPLIED  -- document-wide unique id --
  163.   class       CDATA          #IMPLIED  -- space separated list of classes --
  164.   style       %StyleSheet;   #IMPLIED  -- associated style info --
  165.   title       %Text;         #IMPLIED  -- advisory title --"
  166.   >
  167.  
  168. <!ENTITY % i18n
  169.  "lang        %LanguageCode; #IMPLIED  -- language code --
  170.   dir         (ltr|rtl)      #IMPLIED  -- direction for weak/neutral text --"
  171.   >
  172.  
  173. <!ENTITY % events
  174.  "onclick     %Script;       #IMPLIED  -- a pointer button was clicked --
  175.   ondblclick  %Script;       #IMPLIED  -- a pointer button was double clicked--
  176.   onmousedown %Script;       #IMPLIED  -- a pointer button was pressed down --
  177.   onmouseup   %Script;       #IMPLIED  -- a pointer button was released --
  178.   onmouseover %Script;       #IMPLIED  -- a pointer was moved onto --
  179.   onmousemove %Script;       #IMPLIED  -- a pointer was moved within --
  180.   onmouseout  %Script;       #IMPLIED  -- a pointer was moved away --
  181.   onkeypress  %Script;       #IMPLIED  -- a key was pressed and released --
  182.   onkeydown   %Script;       #IMPLIED  -- a key was pressed down --
  183.   onkeyup     %Script;       #IMPLIED  -- a key was released --"
  184.   >
  185.  
  186. <!-- Reserved Feature Switch -->
  187. <!ENTITY % HTML.Reserved "IGNORE">
  188.  
  189. <!-- The following attributes are reserved for possible future use -->
  190. <![ %HTML.Reserved; [
  191. <!ENTITY % reserved
  192.  "datasrc     %URI;          #IMPLIED  -- a single or tabular Data Source --
  193.   datafld     CDATA          #IMPLIED  -- the property or column name --
  194.   dataformatas (plaintext|html) plaintext -- text or html --"
  195.   >
  196. ]]>
  197.  
  198. <!ENTITY % reserved "">
  199.  
  200. <!ENTITY % attrs "%coreattrs; %i18n; %events;">
  201.  
  202.  
  203. <!--=================== Text Markup ======================================-->
  204.  
  205. <!ENTITY % fontstyle
  206.  "TT | I | B | BIG | SMALL">
  207.  
  208. <!ENTITY % phrase "EM | STRONG | DFN | CODE |
  209.                    SAMP | KBD | VAR | CITE | ABBR | ACRONYM" >
  210.  
  211. <!ENTITY % special
  212.    "A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO">
  213.  
  214. <!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">
  215.  
  216. <!-- %inline; covers inline or "text-level" elements -->
  217. <!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">
  218.  
  219. <!ELEMENT (%fontstyle;|%phrase;) - - (%inline;)*>
  220. <!ATTLIST (%fontstyle;|%phrase;)
  221.   %attrs;                              -- %coreattrs, %i18n, %events --
  222.   >
  223.  
  224. <!ELEMENT (SUB|SUP) - - (%inline;)*    -- subscript, superscript -->
  225. <!ATTLIST (SUB|SUP)
  226.   %attrs;                              -- %coreattrs, %i18n, %events --
  227.   >
  228.  
  229. <!ELEMENT SPAN - - (%inline;)*         -- generic language/style container -->
  230. <!ATTLIST SPAN
  231.   %attrs;                              -- %coreattrs, %i18n, %events --
  232.   %reserved;                   -- reserved for possible future use --
  233.   >
  234.  
  235. <!ELEMENT BDO - - (%inline;)*          -- I18N BiDi over-ride -->
  236. <!ATTLIST BDO
  237.   %coreattrs;                          -- id, class, style, title --
  238.   lang        %LanguageCode; #IMPLIED  -- language code --
  239.   dir         (ltr|rtl)      #REQUIRED -- directionality --
  240.   >
  241.  
  242.  
  243. <!ELEMENT BR - O EMPTY                 -- forced line break -->
  244. <!ATTLIST BR
  245.   %coreattrs;                          -- id, class, style, title --
  246.   >
  247.  
  248. <!--================== HTML content models ===============================-->
  249.  
  250. <!--
  251.     HTML has two basic content models:
  252.  
  253.         %inline;     character level elements and text strings
  254.         %block;      block-like elements e.g. paragraphs and lists
  255. -->
  256.  
  257. <!ENTITY % block
  258.      "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
  259.       BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">
  260.  
  261. <!ENTITY % flow "%block; | %inline;">
  262.  
  263. <!--=================== Document Body ====================================-->
  264.  
  265. <!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->
  266. <!ATTLIST BODY
  267.   %attrs;                              -- %coreattrs, %i18n, %events --
  268.   onload          %Script;   #IMPLIED  -- the document has been loaded --
  269.   onunload        %Script;   #IMPLIED  -- the document has been removed --
  270.   >
  271.  
  272. <!ELEMENT ADDRESS - - (%inline;)* -- information on author -->
  273. <!ATTLIST ADDRESS
  274.   %attrs;                              -- %coreattrs, %i18n, %events --
  275.   >
  276.  
  277. <!ELEMENT DIV - - (%flow;)*            -- generic language/style container -->
  278. <!ATTLIST DIV
  279.   %attrs;                              -- %coreattrs, %i18n, %events --
  280.   %reserved;                           -- reserved for possible future use --
  281.   >
  282.  
  283.  
  284. <!--================== The Anchor Element ================================-->
  285.  
  286. <!ENTITY % Shape "(rect|circle|poly|default)">
  287. <!ENTITY % Coords "CDATA" -- comma separated list of lengths -->
  288.  
  289. <!ELEMENT A - - (%inline;)* -(A)       -- anchor -->
  290. <!ATTLIST A
  291.   %attrs;                              -- %coreattrs, %i18n, %events --
  292.   charset     %Charset;      #IMPLIED  -- char encoding of linked resource --
  293.   type        %ContentType;  #IMPLIED  -- advisory content type --
  294.   name        CDATA          #IMPLIED  -- named link end --
  295.   href        %URI;          #IMPLIED  -- URI for linked resource --
  296.   hreflang    %LanguageCode; #IMPLIED  -- language code --
  297.   rel         %LinkTypes;    #IMPLIED  -- forward link types --
  298.   rev         %LinkTypes;    #IMPLIED  -- reverse link types --
  299.   accesskey   %Character;    #IMPLIED  -- accessibility key character --
  300.   shape       %Shape;        rect      -- for use with client-side image maps --
  301.   coords      %Coords;       #IMPLIED  -- for use with client-side image maps --
  302.   tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
  303.   onfocus     %Script;       #IMPLIED  -- the element got the focus --
  304.   onblur      %Script;       #IMPLIED  -- the element lost the focus --
  305.   >
  306.  
  307. <!--================== Client-side image maps ============================-->
  308.  
  309. <!-- These can be placed in the same document or grouped in a
  310.      separate document although this isn't yet widely supported -->
  311.  
  312. <!ELEMENT MAP - - ((%block;) | AREA)+ -- client-side image map -->
  313. <!ATTLIST MAP
  314.   %attrs;                              -- %coreattrs, %i18n, %events --
  315.   name        CDATA          #REQUIRED -- for reference by usemap --
  316.   >
  317.  
  318. <!ELEMENT AREA - O EMPTY               -- client-side image map area -->
  319. <!ATTLIST AREA
  320.   %attrs;                              -- %coreattrs, %i18n, %events --
  321.   shape       %Shape;        rect      -- controls interpretation of coords --
  322.   coords      %Coords;       #IMPLIED  -- comma separated list of lengths --
  323.   href        %URI;          #IMPLIED  -- URI for linked resource --
  324.   nohref      (nohref)       #IMPLIED  -- this region has no action --
  325.   alt         %Text;         #REQUIRED -- short description --
  326.   tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
  327.   accesskey   %Character;    #IMPLIED  -- accessibility key character --
  328.   onfocus     %Script;       #IMPLIED  -- the element got the focus --
  329.   onblur      %Script;       #IMPLIED  -- the element lost the focus --
  330.   >
  331.  
  332. <!--================== The LINK Element ==================================-->
  333.  
  334. <!--
  335.   Relationship values can be used in principle:
  336.  
  337.    a) for document specific toolbars/menus when used
  338.       with the LINK element in document head e.g.
  339.         start, contents, previous, next, index, end, help
  340.    b) to link to a separate style sheet (rel=stylesheet)
  341.    c) to make a link to a script (rel=script)
  342.    d) by stylesheets to control how collections of
  343.       html nodes are rendered into printed documents
  344.    e) to make a link to a printable version of this document
  345.       e.g. a postscript or pdf version (rel=alternate media=print)
  346. -->
  347.  
  348. <!ELEMENT LINK - O EMPTY               -- a media-independent link -->
  349. <!ATTLIST LINK
  350.   %attrs;                              -- %coreattrs, %i18n, %events --
  351.   charset     %Charset;      #IMPLIED  -- char encoding of linked resource --
  352.   href        %URI;          #IMPLIED  -- URI for linked resource --
  353.   hreflang    %LanguageCode; #IMPLIED  -- language code --
  354.   type        %ContentType;  #IMPLIED  -- advisory content type --
  355.   rel         %LinkTypes;    #IMPLIED  -- forward link types --
  356.   rev         %LinkTypes;    #IMPLIED  -- reverse link types --
  357.   media       %MediaDesc;    #IMPLIED  -- for rendering on these media --
  358.   >
  359.  
  360. <!--=================== Images ===========================================-->
  361.  
  362. <!-- Length defined in strict DTD for cellpadding/cellspacing -->
  363. <!ENTITY % Length "CDATA" -- nn for pixels or nn% for percentage length -->
  364. <!ENTITY % MultiLength "CDATA" -- pixel, percentage, or relative -->
  365.  
  366. <![ %HTML.Frameset; [
  367. <!ENTITY % MultiLengths "CDATA" -- comma-separated list of MultiLength -->
  368. ]]>
  369.  
  370. <!ENTITY % Pixels "CDATA" -- integer representing length in pixels -->
  371.  
  372.  
  373. <!-- To avoid problems with text-only UAs as well as 
  374.    to make image content understandable and navigable 
  375.    to users of non-visual UAs, you need to provide
  376.    a description with ALT, and avoid server-side image maps -->
  377. <!ELEMENT IMG - O EMPTY                -- Embedded image -->
  378. <!ATTLIST IMG
  379.   %attrs;                              -- %coreattrs, %i18n, %events --
  380.   src         %URI;          #REQUIRED -- URI of image to embed --
  381.   alt         %Text;         #REQUIRED -- short description --
  382.   longdesc    %URI;          #IMPLIED  -- link to long description
  383.                                           (complements alt) --
  384.   name        CDATA          #IMPLIED  -- name of image for scripting --
  385.   height      %Length;       #IMPLIED  -- override height --
  386.   width       %Length;       #IMPLIED  -- override width --
  387.   usemap      %URI;          #IMPLIED  -- use client-side image map --
  388.   ismap       (ismap)        #IMPLIED  -- use server-side image map --
  389.   >
  390.  
  391. <!-- USEMAP points to a MAP element which may be in this document
  392.   or an external document, although the latter is not widely supported -->
  393.  
  394. <!--==================== OBJECT ======================================-->
  395. <!--
  396.   OBJECT is used to embed objects as part of HTML pages 
  397.   PARAM elements should precede other content. SGML mixed content
  398.   model technicality precludes specifying this formally ...
  399. -->
  400.  
  401. <!ELEMENT OBJECT - - (PARAM | %flow;)*
  402.  -- generic embedded object -->
  403. <!ATTLIST OBJECT
  404.   %attrs;                              -- %coreattrs, %i18n, %events --
  405.   declare     (declare)      #IMPLIED  -- declare but don't instantiate flag --
  406.   classid     %URI;          #IMPLIED  -- identifies an implementation --
  407.   codebase    %URI;          #IMPLIED  -- base URI for classid, data, archive--
  408.   data        %URI;          #IMPLIED  -- reference to object's data --
  409.   type        %ContentType;  #IMPLIED  -- content type for data --
  410.   codetype    %ContentType;  #IMPLIED  -- content type for code --
  411.   archive     %URI;          #IMPLIED  -- space separated archive list --
  412.   standby     %Text;         #IMPLIED  -- message to show while loading --
  413.   height      %Length;       #IMPLIED  -- override height --
  414.   width       %Length;       #IMPLIED  -- override width --
  415.   usemap      %URI;          #IMPLIED  -- use client-side image map --
  416.   name        CDATA          #IMPLIED  -- submit as part of form --
  417.   tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
  418.   %reserved;                           -- reserved for possible future use --
  419.   >
  420.  
  421. <!ELEMENT PARAM - O EMPTY              -- named property value -->
  422. <!ATTLIST PARAM
  423.   id          ID             #IMPLIED  -- document-wide unique id --
  424.   name        CDATA          #REQUIRED -- property name --
  425.   value       CDATA          #IMPLIED  -- property value --
  426.   valuetype   (DATA|REF|OBJECT) DATA   -- How to interpret value --
  427.   type        %ContentType;  #IMPLIED  -- content type for value
  428.                                           when valuetype=ref --
  429.   >
  430.  
  431.  
  432. <!--=================== Horizontal Rule ==================================-->
  433.  
  434. <!ELEMENT HR - O EMPTY -- horizontal rule -->
  435. <!ATTLIST HR
  436.   %attrs;                              -- %coreattrs, %i18n, %events --
  437.   >
  438.  
  439. <!--=================== Paragraphs =======================================-->
  440.  
  441. <!ELEMENT P - O (%inline;)*            -- paragraph -->
  442. <!ATTLIST P
  443.   %attrs;                              -- %coreattrs, %i18n, %events --
  444.   >
  445.  
  446. <!--=================== Headings =========================================-->
  447.  
  448. <!--
  449.   There are six levels of headings from H1 (the most important)
  450.   to H6 (the least important).
  451. -->
  452.  
  453. <!ELEMENT (%heading;)  - - (%inline;)* -- heading -->
  454. <!ATTLIST (%heading;)
  455.   %attrs;                              -- %coreattrs, %i18n, %events --
  456.   >
  457.  
  458. <!--=================== Preformatted Text ================================-->
  459.  
  460. <!-- excludes markup for images and changes in font size -->
  461. <!ENTITY % pre.exclusion "IMG|OBJECT|BIG|SMALL|SUB|SUP">
  462.  
  463. <!ELEMENT PRE - - (%inline;)* -(%pre.exclusion;) -- preformatted text -->
  464. <!ATTLIST PRE
  465.   %attrs;                              -- %coreattrs, %i18n, %events --
  466.   >
  467.  
  468. <!--===================== Inline Quotes ==================================-->
  469.  
  470. <!ELEMENT Q - - (%inline;)*            -- short inline quotation -->
  471. <!ATTLIST Q
  472.   %attrs;                              -- %coreattrs, %i18n, %events --
  473.   cite        %URI;          #IMPLIED  -- URI for source document or msg --
  474.   >
  475.  
  476. <!--=================== Block-like Quotes ================================-->
  477.  
  478. <!ELEMENT BLOCKQUOTE - - (%block;|SCRIPT)+ -- long quotation -->
  479. <!ATTLIST BLOCKQUOTE
  480.   %attrs;                              -- %coreattrs, %i18n, %events --
  481.   cite        %URI;          #IMPLIED  -- URI for source document or msg --
  482.   >
  483.  
  484. <!--=================== Inserted/Deleted Text ============================-->
  485.  
  486.  
  487. <!-- INS/DEL are handled by inclusion on BODY -->
  488. <!ELEMENT (INS|DEL) - - (%flow;)*      -- inserted text, deleted text -->
  489. <!ATTLIST (INS|DEL)
  490.   %attrs;                              -- %coreattrs, %i18n, %events --
  491.   cite        %URI;          #IMPLIED  -- info on reason for change --
  492.   datetime    %Datetime;     #IMPLIED  -- date and time of change --
  493.   >
  494.  
  495. <!--=================== Lists ============================================-->
  496.  
  497. <!-- definition lists - DT for term, DD for its definition -->
  498.  
  499. <!ELEMENT DL - - (DT|DD)+              -- definition list -->
  500. <!ATTLIST DL
  501.   %attrs;                              -- %coreattrs, %i18n, %events --
  502.   >
  503.  
  504. <!ELEMENT DT - O (%inline;)*           -- definition term -->
  505. <!ELEMENT DD - O (%flow;)*             -- definition description -->
  506. <!ATTLIST (DT|DD)
  507.   %attrs;                              -- %coreattrs, %i18n, %events --
  508.   >
  509.  
  510.  
  511. <!ELEMENT OL - - (LI)+                 -- ordered list -->
  512. <!ATTLIST OL
  513.   %attrs;                              -- %coreattrs, %i18n, %events --
  514.   >
  515.  
  516. <!-- Unordered Lists (UL) bullet styles -->
  517. <!ELEMENT UL - - (LI)+                 -- unordered list -->
  518. <!ATTLIST UL
  519.   %attrs;                              -- %coreattrs, %i18n, %events --
  520.   >
  521.  
  522.  
  523.  
  524. <!ELEMENT LI - O (%flow;)*             -- list item -->
  525. <!ATTLIST LI
  526.   %attrs;                              -- %coreattrs, %i18n, %events --
  527.   >
  528.  
  529. <!--================ Forms ===============================================-->
  530. <!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form -->
  531. <!ATTLIST FORM
  532.   %attrs;                              -- %coreattrs, %i18n, %events --
  533.   action      %URI;          #REQUIRED -- server-side form handler --
  534.   method      (GET|POST)     GET       -- HTTP method used to submit the form--
  535.   enctype     %ContentType;  "application/x-www-form-urlencoded"
  536.   name        CDATA          #IMPLIED  -- name of form for scripting --
  537.   onsubmit    %Script;       #IMPLIED  -- the form was submitted --
  538.   onreset     %Script;       #IMPLIED  -- the form was reset --
  539.   accept-charset %Charsets;  #IMPLIED  -- list of supported charsets --
  540.   >
  541.  
  542. <!-- Each label must not contain more than ONE field -->
  543. <!ELEMENT LABEL - - (%inline;)* -(LABEL) -- form field label text -->
  544. <!ATTLIST LABEL
  545.   %attrs;                              -- %coreattrs, %i18n, %events --
  546.   for         IDREF          #IMPLIED  -- matches field ID value --
  547.   accesskey   %Character;    #IMPLIED  -- accessibility key character --
  548.   onfocus     %Script;       #IMPLIED  -- the element got the focus --
  549.   onblur      %Script;       #IMPLIED  -- the element lost the focus --
  550.   >
  551.  
  552. <!ENTITY % InputType
  553.   "(TEXT | PASSWORD | CHECKBOX |
  554.     RADIO | SUBMIT | RESET |
  555.     FILE | HIDDEN | IMAGE | BUTTON)"
  556.    >
  557.  
  558. <!-- attribute name required for all but submit and reset -->
  559. <!ELEMENT INPUT - O EMPTY              -- form control -->
  560. <!ATTLIST INPUT
  561.   %attrs;                              -- %coreattrs, %i18n, %events --
  562.   type        %InputType;    TEXT      -- what kind of widget is needed --
  563.   name        CDATA          #IMPLIED  -- submit as part of form --
  564.   value       CDATA          #IMPLIED  -- required for radio and checkboxes --
  565.   checked     (checked)      #IMPLIED  -- for radio buttons and check boxes --
  566.   disabled    (disabled)     #IMPLIED  -- unavailable in this context --
  567.   readonly    (readonly)     #IMPLIED  -- for text and passwd --
  568.   size        CDATA          #IMPLIED  -- specific to each type of field --
  569.   maxlength   NUMBER         #IMPLIED  -- max chars for text fields --
  570.   src         %URI;          #IMPLIED  -- for fields with images --
  571.   alt         CDATA          #IMPLIED  -- short description --
  572.   usemap      %URI;          #IMPLIED  -- use client-side image map --
  573.   ismap       (ismap)        #IMPLIED  -- use server-side image map --
  574.   tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
  575.   accesskey   %Character;    #IMPLIED  -- accessibility key character --
  576.   onfocus     %Script;       #IMPLIED  -- the element got the focus --
  577.   onblur      %Script;       #IMPLIED  -- the element lost the focus --
  578.   onselect    %Script;       #IMPLIED  -- some text was selected --
  579.   onchange    %Script;       #IMPLIED  -- the element value was changed --
  580.   accept      %ContentTypes; #IMPLIED  -- list of MIME types for file upload --
  581.   %reserved;                           -- reserved for possible future use --
  582.   >
  583.  
  584. <!ELEMENT SELECT - - (OPTGROUP|OPTION)+ -- option selector -->
  585. <!ATTLIST SELECT
  586.   %attrs;                              -- %coreattrs, %i18n, %events --
  587.   name        CDATA          #IMPLIED  -- field name --
  588.   size        NUMBER         #IMPLIED  -- rows visible --
  589.   multiple    (multiple)     #IMPLIED  -- default is single selection --
  590.   disabled    (disabled)     #IMPLIED  -- unavailable in this context --
  591.   tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
  592.   onfocus     %Script;       #IMPLIED  -- the element got the focus --
  593.   onblur      %Script;       #IMPLIED  -- the element lost the focus --
  594.   onchange    %Script;       #IMPLIED  -- the element value was changed --
  595.   %reserved;                           -- reserved for possible future use --
  596.   >
  597.  
  598. <!ELEMENT OPTGROUP - - (OPTION)+ -- option group -->
  599. <!ATTLIST OPTGROUP
  600.   %attrs;                              -- %coreattrs, %i18n, %events --
  601.   disabled    (disabled)     #IMPLIED  -- unavailable in this context --
  602.   label       %Text;         #REQUIRED -- for use in hierarchical menus --
  603.   >
  604.  
  605. <!ELEMENT OPTION - O (#PCDATA)         -- selectable choice -->
  606. <!ATTLIST OPTION
  607.   %attrs;                              -- %coreattrs, %i18n, %events --
  608.   selected    (selected)     #IMPLIED
  609.   disabled    (disabled)     #IMPLIED  -- unavailable in this context --
  610.   label       %Text;         #IMPLIED  -- for use in hierarchical menus --
  611.   value       CDATA          #IMPLIED  -- defaults to element content --
  612.   >
  613.  
  614. <!ELEMENT TEXTAREA - - (#PCDATA)       -- multi-line text field -->
  615. <!ATTLIST TEXTAREA
  616.   %attrs;                              -- %coreattrs, %i18n, %events --
  617.   name        CDATA          #IMPLIED
  618.   rows        NUMBER         #REQUIRED
  619.   cols        NUMBER         #REQUIRED
  620.   disabled    (disabled)     #IMPLIED  -- unavailable in this context --
  621.   readonly    (readonly)     #IMPLIED
  622.   tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
  623.   accesskey   %Character;    #IMPLIED  -- accessibility key character --
  624.   onfocus     %Script;       #IMPLIED  -- the element got the focus --
  625.   onblur      %Script;       #IMPLIED  -- the element lost the focus --
  626.   onselect    %Script;       #IMPLIED  -- some text was selected --
  627.   onchange    %Script;       #IMPLIED  -- the element value was changed --
  628.   %reserved;                           -- reserved for possible future use --
  629.   >
  630.  
  631. <!--
  632.   #PCDATA is to solve the mixed content problem,
  633.   per specification only whitespace is allowed there!
  634.  -->
  635. <!ELEMENT FIELDSET - - (#PCDATA,LEGEND,(%flow;)*) -- form control group -->
  636. <!ATTLIST FIELDSET
  637.   %attrs;                              -- %coreattrs, %i18n, %events --
  638.   >
  639.  
  640. <!ELEMENT LEGEND - - (%inline;)*       -- fieldset legend -->
  641.  
  642. <!ATTLIST LEGEND
  643.   %attrs;                              -- %coreattrs, %i18n, %events --
  644.   accesskey   %Character;    #IMPLIED  -- accessibility key character --
  645.   >
  646.  
  647. <!ELEMENT BUTTON - -
  648.      (%flow;)* -(A|%formctrl;|FORM|FIELDSET)
  649.      -- push button -->
  650. <!ATTLIST BUTTON
  651.   %attrs;                              -- %coreattrs, %i18n, %events --
  652.   name        CDATA          #IMPLIED
  653.   value       CDATA          #IMPLIED  -- sent to server when submitted --
  654.   type        (button|submit|reset) submit -- for use as form button --
  655.   disabled    (disabled)     #IMPLIED  -- unavailable in this context --
  656.   tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
  657.   accesskey   %Character;    #IMPLIED  -- accessibility key character --
  658.   onfocus     %Script;       #IMPLIED  -- the element got the focus --
  659.   onblur      %Script;       #IMPLIED  -- the element lost the focus --
  660.   %reserved;                           -- reserved for possible future use --
  661.   >
  662.  
  663. <!--======================= Tables =======================================-->
  664.  
  665. <!-- IETF HTML table standard, see [RFC1942] -->
  666.  
  667. <!--
  668.  The BORDER attribute sets the thickness of the frame around the
  669.  table. The default units are screen pixels.
  670.  
  671.  The FRAME attribute specifies which parts of the frame around
  672.  the table should be rendered. The values are not the same as
  673.  CALS to avoid a name clash with the VALIGN attribute.
  674.  
  675.  The value "border" is included for backwards compatibility with
  676.  <TABLE BORDER> which yields frame=border and border=implied
  677.  For <TABLE BORDER=1> you get border=1 and frame=implied. In this
  678.  case, it is appropriate to treat this as frame=border for backwards
  679.  compatibility with deployed browsers.
  680. -->
  681. <!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">
  682.  
  683. <!--
  684.  The RULES attribute defines which rules to draw between cells:
  685.  
  686.  If RULES is absent then assume:
  687.      "none" if BORDER is absent or BORDER=0 otherwise "all"
  688. -->
  689.  
  690. <!ENTITY % TRules "(none | groups | rows | cols | all)">
  691.   
  692. <!-- horizontal placement of table relative to document -->
  693. <!ENTITY % TAlign "(left|center|right)">
  694.  
  695. <!-- horizontal alignment attributes for cell contents -->
  696. <!ENTITY % cellhalign
  697.   "align      (left|center|right|justify|char) #IMPLIED
  698.    char       %Character;    #IMPLIED  -- alignment char, e.g. char=':' --
  699.    charoff    %Length;       #IMPLIED  -- offset for alignment char --"
  700.   >
  701.  
  702. <!-- vertical alignment attributes for cell contents -->
  703. <!ENTITY % cellvalign
  704.   "valign     (top|middle|bottom|baseline) #IMPLIED"
  705.   >
  706.  
  707. <!ELEMENT TABLE - -
  708.      (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>
  709. <!ELEMENT CAPTION  - - (%inline;)*     -- table caption -->
  710. <!ELEMENT THEAD    - O (TR)+           -- table header -->
  711. <!ELEMENT TFOOT    - O (TR)+           -- table footer -->
  712. <!ELEMENT TBODY    O O (TR)+           -- table body -->
  713. <!ELEMENT COLGROUP - O (COL)*          -- table column group -->
  714. <!ELEMENT COL      - O EMPTY           -- table column -->
  715. <!ELEMENT TR       - O (TH|TD)+        -- table row -->
  716. <!ELEMENT (TH|TD)  - O (%flow;)*       -- table header cell, table data cell-->
  717.  
  718. <!ATTLIST TABLE                        -- table element --
  719.   %attrs;                              -- %coreattrs, %i18n, %events --
  720.   summary     %Text;         #IMPLIED  -- purpose/structure for speech output--
  721.   width       %Length;       #IMPLIED  -- table width --
  722.   border      %Pixels;       #IMPLIED  -- controls frame width around table --
  723.   frame       %TFrame;       #IMPLIED  -- which parts of frame to render --
  724.   rules       %TRules;       #IMPLIED  -- rulings between rows and cols --
  725.   cellspacing %Length;       #IMPLIED  -- spacing between cells --
  726.   cellpadding %Length;       #IMPLIED  -- spacing within cells --
  727.   %reserved;                           -- reserved for possible future use --
  728.   datapagesize CDATA         #IMPLIED  -- reserved for possible future use --
  729.   >
  730.  
  731.  
  732. <!ATTLIST CAPTION
  733.   %attrs;                              -- %coreattrs, %i18n, %events --
  734.   >
  735.  
  736. <!--
  737. COLGROUP groups a set of COL elements. It allows you to group
  738. several semantically related columns together.
  739. -->
  740. <!ATTLIST COLGROUP
  741.   %attrs;                              -- %coreattrs, %i18n, %events --
  742.   span        NUMBER         1         -- default number of columns in group --
  743.   width       %MultiLength;  #IMPLIED  -- default width for enclosed COLs --
  744.   %cellhalign;                         -- horizontal alignment in cells --
  745.   %cellvalign;                         -- vertical alignment in cells --
  746.   >
  747.  
  748. <!--
  749.  COL elements define the alignment properties for cells in
  750.  one or more columns.
  751.  
  752.  The WIDTH attribute specifies the width of the columns, e.g.
  753.  
  754.      width=64        width in screen pixels
  755.      width=0.5*      relative width of 0.5
  756.  
  757.  The SPAN attribute causes the attributes of one
  758.  COL element to apply to more than one column.
  759. -->
  760. <!ATTLIST COL                          -- column groups and properties --
  761.   %attrs;                              -- %coreattrs, %i18n, %events --
  762.   span        NUMBER         1         -- COL attributes affect N columns --
  763.   width       %MultiLength;  #IMPLIED  -- column width specification --
  764.   %cellhalign;                         -- horizontal alignment in cells --
  765.   %cellvalign;                         -- vertical alignment in cells --
  766.   >
  767.  
  768. <!--
  769.     Use THEAD to duplicate headers when breaking table
  770.     across page boundaries, or for static headers when
  771.     TBODY sections are rendered in scrolling panel.
  772.  
  773.     Use TFOOT to duplicate footers when breaking table
  774.     across page boundaries, or for static footers when
  775.     TBODY sections are rendered in scrolling panel.
  776.  
  777.     Use multiple TBODY sections when rules are needed
  778.     between groups of table rows.
  779. -->
  780. <!ATTLIST (THEAD|TBODY|TFOOT)          -- table section --
  781.   %attrs;                              -- %coreattrs, %i18n, %events --
  782.   %cellhalign;                         -- horizontal alignment in cells --
  783.   %cellvalign;                         -- vertical alignment in cells --
  784.   >
  785.  
  786. <!ATTLIST TR                           -- table row --
  787.   %attrs;                              -- %coreattrs, %i18n, %events --
  788.   %cellhalign;                         -- horizontal alignment in cells --
  789.   %cellvalign;                         -- vertical alignment in cells --
  790.   >
  791.  
  792.  
  793. <!-- Scope is simpler than axes attribute for common tables -->
  794. <!ENTITY % Scope "(row|col|rowgroup|colgroup)">
  795.  
  796. <!-- TH is for headers, TD for data, but for cells acting as both use TD -->
  797. <!ATTLIST (TH|TD)                      -- header or data cell --
  798.   %attrs;                              -- %coreattrs, %i18n, %events --
  799.   abbr        %Text;         #IMPLIED  -- abbreviation for header cell --
  800.   axis        CDATA          #IMPLIED  -- names groups of related headers--
  801.   headers     IDREFS         #IMPLIED  -- list of id's for header cells --
  802.   scope       %Scope;        #IMPLIED  -- scope covered by header cells --
  803.   rowspan     NUMBER         1         -- number of rows spanned by cell --
  804.   colspan     NUMBER         1         -- number of cols spanned by cell --
  805.   %cellhalign;                         -- horizontal alignment in cells --
  806.   %cellvalign;                         -- vertical alignment in cells --
  807.   >
  808.  
  809.  
  810. <!--================ Document Head =======================================-->
  811. <!-- %head.misc; defined earlier on as "SCRIPT|STYLE|META|LINK|OBJECT" -->
  812. <!ENTITY % head.content "TITLE & BASE?">
  813.  
  814. <!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->
  815. <!ATTLIST HEAD
  816.   %i18n;                               -- lang, dir --
  817.   profile     %URI;          #IMPLIED  -- named dictionary of meta info --
  818.   >
  819.  
  820. <!-- The TITLE element is not considered part of the flow of text.
  821.        It should be displayed, for example as the page header or
  822.        window title. Exactly one title is required per document.
  823.     -->
  824. <!ELEMENT TITLE - - (#PCDATA) -(%head.misc;) -- document title -->
  825. <!ATTLIST TITLE %i18n>
  826.  
  827.  
  828. <!ELEMENT BASE - O EMPTY               -- document base URI -->
  829. <!ATTLIST BASE
  830.   href        %URI;          #REQUIRED -- URI that acts as base URI --
  831.   >
  832.  
  833. <!ELEMENT META - O EMPTY               -- generic metainformation -->
  834. <!ATTLIST META
  835.   %i18n;                               -- lang, dir, for use with content --
  836.   http-equiv  NAME           #IMPLIED  -- HTTP response header name  --
  837.   name        NAME           #IMPLIED  -- metainformation name --
  838.   content     CDATA          #REQUIRED -- associated information --
  839.   scheme      CDATA          #IMPLIED  -- select form of content --
  840.   >
  841.  
  842. <!ELEMENT STYLE - - %StyleSheet        -- style info -->
  843. <!ATTLIST STYLE
  844.   %i18n;                               -- lang, dir, for use with title --
  845.   type        %ContentType;  #REQUIRED -- content type of style language --
  846.   media       %MediaDesc;    #IMPLIED  -- designed for use with these media --
  847.   title       %Text;         #IMPLIED  -- advisory title --
  848.   >
  849.  
  850. <!ELEMENT SCRIPT - - %Script;          -- script statements -->
  851. <!ATTLIST SCRIPT
  852.   charset     %Charset;      #IMPLIED  -- char encoding of linked resource --
  853.   type        %ContentType;  #REQUIRED -- content type of script language --
  854.   src         %URI;          #IMPLIED  -- URI for an external script --
  855.   defer       (defer)        #IMPLIED  -- UA may defer execution of script --
  856.   event       CDATA          #IMPLIED  -- reserved for possible future use --
  857.   for         %URI;          #IMPLIED  -- reserved for possible future use --
  858.   >
  859.  
  860. <!ELEMENT NOSCRIPT - - (%block;)+
  861.   -- alternate content container for non script-based rendering -->
  862. <!ATTLIST NOSCRIPT
  863.   %attrs;                              -- %coreattrs, %i18n, %events --
  864.   >
  865.  
  866. <!--================ Document Structure ==================================-->
  867. <!ENTITY % html.content "HEAD, BODY">
  868.  
  869. <!ELEMENT HTML O O (%html.content;)    -- document root element -->
  870. <!ATTLIST HTML
  871.   %i18n;                               -- lang, dir --
  872.   >
  873.